mirror of
https://github.com/status-im/consul.git
synced 2025-02-05 02:16:09 +00:00
consul: revert session endpoint test
This commit is contained in:
parent
81a862d8b7
commit
e098b7592f
@ -2,7 +2,6 @@ package consul
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@ -512,7 +511,7 @@ func TestSessionEndpoint_Apply_BadTTL(t *testing.T) {
|
||||
if err == nil {
|
||||
t.Fatal("expected error")
|
||||
}
|
||||
if !strings.Contains(err.Error(), "Session TTL '10z' invalid: time: unknown unit z in duration 10z") {
|
||||
if err.Error() != "Session TTL '10z' invalid: time: unknown unit z in duration 10z" {
|
||||
t.Fatalf("incorrect error message: %s", err.Error())
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user