Skip to content

Commit

Permalink
fix: flakey http test
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Meier <[email protected]>
  • Loading branch information
astromechza committed Jan 17, 2025
1 parent b836a3e commit 7e3a2a8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions uriget/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ func ExampleGetFile_local() {
func ExampleGetFile_http() {
buff, err := GetFile(context.Background(), "http://example.com")
fmt.Println(len(buff) > 0, err)
_, err = GetFile(context.Background(), "https://example.com/does/not/exist")
fmt.Println(err)
// Output:
// true <nil>
// GET https://example.com/does/not/exist non-200 status code: 404
}

func ExampleGetFile_git() {
Expand Down

0 comments on commit 7e3a2a8

Please sign in to comment.