go test is kicking up some noise
scottstensland opened this issue · 1 comments
scottstensland commented
I just ran go test
on this repo and see
this is first of many
ub.com/redis-go/redis $ go test
--- FAIL: TestKeyExpirer (1.00s)
keyexpire_test.go:11:
Error Trace: keyexpire_test.go:11
Error: Not equal:
expected: "OK"
actual : ""
ub.com/redis-go/redis $ go test
--- FAIL: TestKeyExpirer (1.00s)
keyexpire_test.go:11:
Error Trace: keyexpire_test.go:11
Error: Not equal:
expected: "OK"
actual : ""
pie@peach /cryptdata6/var/log/tmp/shared/gopath/src/github.com/redis-go/redis $ go test
--- FAIL: TestKeyExpirer (1.00s)
keyexpire_test.go:11:
Error Trace: keyexpire_test.go:11
Error: Not equal:
expected: "OK"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-OK
+
Test: TestKeyExpirer
keyexpire_test.go:12:
Error Trace: keyexpire_test.go:12
Error: Received unexpected error:
dial tcp :6379: connect: connection refused
Test: TestKeyExpirer
KEY: lpushkey
CREATED NEW LIST
KEY: lpushkey
KEY: lpushkey
KEY: lpushkey2
CREATED NEW LIST
KEY: list
CREATED NEW LIST
--- FAIL: TestLRangeCommand (9.00s)
list_test.go:57:
Error Trace: list_test.go:57
Error: Received unexpected error:
read tcp 127.0.0.1:34116->127.0.0.1:6379: i/o timeout
Test: TestLRangeCommand
list_test.go:58:
Error Trace: list_test.go:58
Error: Should not be zero, but was
Test: TestLRangeCommand
list_test.go:59:
Error Trace: list_test.go:59
Error: Should NOT be empty, but was
Test: TestLRangeCommand
list_test.go:62:
Error Trace: list_test.go:62
Error: Received unexpected error:
read tcp 127.0.0.1:34118->127.0.0.1:6379: i/o timeout
Test: TestLRangeCommand
list_test.go:63:
Error Trace: list_test.go:63
Error: Not equal:
expected: 2
actual : 0
Test: TestLRangeCommand
--- FAIL: TestPingCommand (6.00s)
redis_test.go:24:
Error Trace: redis_test.go:24
Error: Not equal:
expected: "PONG"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-PONG
+
Test: TestPingCommand
redis_test.go:25:
Error Trace: redis_test.go:25
Error: Received unexpected error:
read tcp 127.0.0.1:34120->127.0.0.1:6379: i/o timeout
Test: TestPingCommand
redis_test.go:30:
Error Trace: redis_test.go:30
Error: Not equal:
expected: "Hello, redis server!"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-Hello, redis server!
+
Test: TestPingCommand
redis_test.go:31:
Error Trace: redis_test.go:31
Error: Received unexpected error:
read tcp 127.0.0.1:34122->127.0.0.1:6379: i/o timeout
Test: TestPingCommand
--- FAIL: TestSetCommand (9.00s)
redis_test.go:36:
Error Trace: redis_test.go:36
Error: Not equal:
expected: "OK"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-OK
+
Test: TestSetCommand
redis_test.go:37:
Error Trace: redis_test.go:37
Error: Received unexpected error:
read tcp 127.0.0.1:34124->127.0.0.1:6379: i/o timeout
Test: TestSetCommand
redis_test.go:40:
Error Trace: redis_test.go:40
Error: Not equal:
expected: "OK"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-OK
+
Test: TestSetCommand
redis_test.go:41:
Error Trace: redis_test.go:41
Error: Received unexpected error:
read tcp 127.0.0.1:34126->127.0.0.1:6379: i/o timeout
Test: TestSetCommand
redis_test.go:44:
Error Trace: redis_test.go:44
Error: Not equal:
expected: "OK"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-OK
+
Test: TestSetCommand
redis_test.go:45:
Error Trace: redis_test.go:45
Error: Received unexpected error:
read tcp 127.0.0.1:34128->127.0.0.1:6379: i/o timeout
Test: TestSetCommand
--- FAIL: TestGetCommand (3.00s)
redis_test.go:50:
Error Trace: redis_test.go:50
Error: Not equal:
expected: "v"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-v
+
Test: TestGetCommand
redis_test.go:51:
Error Trace: redis_test.go:51
Error: Received unexpected error:
read tcp 127.0.0.1:34130->127.0.0.1:6379: i/o timeout
Test: TestGetCommand
--- FAIL: TestDelCommand (6.00s)
redis_test.go:56:
Error Trace: redis_test.go:56
Error: Not equal:
expected: 0
actual : 2
Test: TestDelCommand
redis_test.go:57:
Error Trace: redis_test.go:57
Error: Received unexpected error:
read tcp 127.0.0.1:34132->127.0.0.1:6379: i/o timeout
Test: TestDelCommand
redis_test.go:61:
Error Trace: redis_test.go:61
Error: Received unexpected error:
read tcp 127.0.0.1:34134->127.0.0.1:6379: i/o timeout
Test: TestDelCommand
--- FAIL: TestTtlCommand (15.00s)
redis_test.go:66:
Error Trace: redis_test.go:66
Error: Not equal:
expected: "OK"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-OK
+
Test: TestTtlCommand
redis_test.go:67:
Error Trace: redis_test.go:67
Error: Received unexpected error:
read tcp 127.0.0.1:34136->127.0.0.1:6379: i/o timeout
Test: TestTtlCommand
redis_test.go:69:
Error Trace: redis_test.go:69
Error: Not equal:
expected: "OK"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-OK
+
Test: TestTtlCommand
redis_test.go:70:
Error Trace: redis_test.go:70
Error: Received unexpected error:
read tcp 127.0.0.1:34138->127.0.0.1:6379: i/o timeout
Test: TestTtlCommand
redis_test.go:73:
Error Trace: redis_test.go:73
Error: Should be true
Test: TestTtlCommand
Messages: ttl: 0
redis_test.go:74:
Error Trace: redis_test.go:74
Error: Received unexpected error:
read tcp 127.0.0.1:34142->127.0.0.1:6379: i/o timeout
Test: TestTtlCommand
redis_test.go:77:
Error Trace: redis_test.go:77
Error: Not equal:
expected: -2000000000
actual : 0
Test: TestTtlCommand
redis_test.go:78:
Error Trace: redis_test.go:78
Error: Received unexpected error:
read tcp 127.0.0.1:34144->127.0.0.1:6379: i/o timeout
Test: TestTtlCommand
redis_test.go:81:
Error Trace: redis_test.go:81
Error: Received unexpected error:
read tcp 127.0.0.1:34146->127.0.0.1:6379: i/o timeout
Test: TestTtlCommand
redis_test.go:82:
Error Trace: redis_test.go:82
Error: Not equal:
expected: -1000000000
actual : 0
Test: TestTtlCommand
--- FAIL: TestExpiry (6.01s)
redis_test.go:87:
Error Trace: redis_test.go:87
Error: Received unexpected error:
read tcp 127.0.0.1:34148->127.0.0.1:6379: i/o timeout
Test: TestExpiry
redis_test.go:88:
Error Trace: redis_test.go:88
Error: Not equal:
expected: "OK"
actual : ""
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-OK
+
Test: TestExpiry
FAIL
exit status 1
FAIL github.com/redis-go/redis 58.064s
robinbraemer commented
This is because the code is incomplete and I'm also currently not maintaining this repo since I completely lost interest in redis.