test: wrong logic
This commit is contained in:
parent
843f1d77c3
commit
9d22f9696a
|
@ -249,8 +249,8 @@ func TestGetCachedJokeByID(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
k, err := joke.GetCachedJokeByID(memory, 4)
|
k, err := joke.GetCachedJokeByID(memory, 4)
|
||||||
if err == nil {
|
if err != nil {
|
||||||
t.Error("an error was not thrown, k:", k)
|
t.Error("an error was thrown:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if k != "" {
|
if k != "" {
|
||||||
|
|
Loading…
Reference in New Issue