소스 검색

TestCreateSession_DontSwallowError: fix error string to be more lenient

Chris Bannister 9 년 전
부모
커밋
c51535c21b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      cassandra_test.go

+ 2 - 2
cassandra_test.go

@@ -2425,7 +2425,7 @@ func TestCreateSession_DontSwallowError(t *testing.T) {
 	}
 	// TODO: we should get a distinct error type here which include the underlying
 	// cassandra error about the protocol version, for now check this here.
-	if !strings.Contains(err.Error(), "Invalid or unsupported protocol version (100)") {
-		t.Fatalf("expcted to get error unsupported protocol version got: %v", err)
+	if !strings.Contains(err.Error(), "Invalid or unsupported protocol version") {
+		t.Fatalf(`expcted to get error "unsupported protocol version" got: %q`, err)
 	}
 }