summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-01-05 15:56:14 +0300
committerWolfy-J <[email protected]>2019-01-05 15:56:14 +0300
commitd890e973c45fbe53916304321f185ce940776bb7 (patch)
tree5740f9ba59e2a696c14076e2701570b2abc0fc98 /util
parent6f1a668f5d67bc81d1ac26be84620dc5c87e1581 (diff)
more tests
Diffstat (limited to 'util')
-rw-r--r--util/state_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/state_test.go b/util/state_test.go
index 2e988e5e..2afe682e 100644
--- a/util/state_test.go
+++ b/util/state_test.go
@@ -29,3 +29,8 @@ func TestServerState(t *testing.T) {
assert.Len(t, state, runtime.NumCPU())
}
+
+func TestServerState_Err(t *testing.T) {
+ _, err := ServerState(nil)
+ assert.Error(t, err)
+}