Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Sep 28, 2022
1 parent 6b033f2 commit ac8ed89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/tasks/plugins/webapi/snowflake/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestEndToEnd(t *testing.T) {
func newFakeSnowflakeServer() *httptest.Server {
statementHandle := "019e7546-0000-278c-0000-40f10001a082"
return httptest.NewServer(http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) {
if request.URL.Path == "/api/statements" && request.Method == "POST" {
if request.URL.Path == "/api/v2/statements" && request.Method == "POST" {
writer.WriteHeader(202)
bytes := []byte(fmt.Sprintf(`{
"statementHandle": "%v",
Expand All @@ -75,7 +75,7 @@ func newFakeSnowflakeServer() *httptest.Server {
return
}

if request.URL.Path == "/api/statements/"+statementHandle && request.Method == "GET" {
if request.URL.Path == "/api/v2/statements/"+statementHandle && request.Method == "GET" {
writer.WriteHeader(200)
bytes := []byte(fmt.Sprintf(`{
"statementHandle": "%v",
Expand All @@ -85,7 +85,7 @@ func newFakeSnowflakeServer() *httptest.Server {
return
}

if request.URL.Path == "/api/statements/"+statementHandle+"/cancel" && request.Method == "POST" {
if request.URL.Path == "/api/v2/statements/"+statementHandle+"/cancel" && request.Method == "POST" {
writer.WriteHeader(200)
return
}
Expand Down

0 comments on commit ac8ed89

Please sign in to comment.