diff options
author | Wolfy-J <[email protected]> | 2019-01-05 15:56:14 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-01-05 15:56:14 +0300 |
commit | d890e973c45fbe53916304321f185ce940776bb7 (patch) | |
tree | 5740f9ba59e2a696c14076e2701570b2abc0fc98 /util | |
parent | 6f1a668f5d67bc81d1ac26be84620dc5c87e1581 (diff) |
more tests
Diffstat (limited to 'util')
-rw-r--r-- | util/state_test.go | 5 |
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) +} |