summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-01-05 15:56:14 +0300
committerWolfy-J <[email protected]>2019-01-05 15:56:14 +0300
commitd890e973c45fbe53916304321f185ce940776bb7 (patch)
tree5740f9ba59e2a696c14076e2701570b2abc0fc98
parent6f1a668f5d67bc81d1ac26be84620dc5c87e1581 (diff)
more tests
-rwxr-xr-xbuild.sh2
-rw-r--r--util/state_test.go5
2 files changed, 6 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index fd2263e0..5772f9f8 100755
--- a/build.sh
+++ b/build.sh
@@ -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)
+}