summaryrefslogtreecommitdiff
path: root/state_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'state_test.go')
-rw-r--r--state_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/state_test.go b/state_test.go
new file mode 100644
index 00000000..027486f8
--- /dev/null
+++ b/state_test.go
@@ -0,0 +1,13 @@
+package roadrunner
+
+import (
+ "github.com/stretchr/testify/assert"
+ "testing"
+)
+
+func TestNewState(t *testing.T) {
+ st := newState(StateAttached)
+
+ assert.Equal(t, "attached", st.String())
+ assert.NotEqual(t, 0, st.Updated().Unix())
+}