Browse Source

consul: revert session endpoint test

pull/1307/head
Ryan Uber 9 years ago
parent
commit
e098b7592f
  1. 3
      consul/session_endpoint_test.go

3
consul/session_endpoint_test.go

@ -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…
Cancel
Save