diff options
Diffstat (limited to 'util/state_test.go')
-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) +} |