diff options
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | util/state_test.go | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -2,7 +2,7 @@ cd $(dirname "${BASH_SOURCE[0]}") OD="$(pwd)" # Pushes application version into the build information. -RR_VERSION=1.2.7 +RR_VERSION=1.3.0 # Hardcode some values to the core package LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.Version=${RR_VERSION}" 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) +} |