Skip to content

Commit

Permalink
fix: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiran committed Dec 11, 2020
1 parent da0ea61 commit a5787df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/test/e2e/route_online_debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package e2e

import (
"fmt"
"io/ioutil"
"net/http"
"strings"
Expand Down Expand Up @@ -50,6 +51,7 @@ func TestRoute_Online_Debug_Route_Not_Exist(t *testing.T) {
}
defer resp.Body.Close()
respBody, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(respBody))
realBody := gjson.Get(string(respBody), "data")
assert.Equal(t, `{"code":404,"message":"404 Not Found","data":{"error_msg":"404 Route Not Found"}}`, realBody.String())
}
Expand Down

0 comments on commit a5787df

Please sign in to comment.