summaryrefslogtreecommitdiff
path: root/state_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'state_test.go')
-rw-r--r--state_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/state_test.go b/state_test.go
index 965ba6b6..636cd859 100644
--- a/state_test.go
+++ b/state_test.go
@@ -10,6 +10,11 @@ func Test_NewState(t *testing.T) {
assert.Equal(t, "errored", st.String())
assert.NotEqual(t, 0, st.Updated().Unix())
+
+ assert.Equal(t, "inactive", newState(StateInactive).String())
+ assert.Equal(t, "ready", newState(StateReady).String())
+ assert.Equal(t, "working", newState(StateWorking).String())
+ assert.Equal(t, "stopped", newState(StateStopped).String())
}
func Test_IsActive(t *testing.T) {