Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sometimes test in pkg/util takes more time #94

Closed
surajssd opened this issue Apr 10, 2017 · 1 comment
Closed

sometimes test in pkg/util takes more time #94

surajssd opened this issue Apr 10, 2017 · 1 comment

Comments

@surajssd
Copy link
Contributor

$subject

$ make test
go test ./pkg/... ./cmd/... .
[SNIP]
ok      github.com/redhat-developer/opencompose/pkg/util        5.716s
[SNIP]

in another run

$ go test -v github.com/redhat-developer/opencompose/pkg/util
=== RUN   TestGetURLData
=== RUN   TestGetURLData/passing_a_valid_URL
=== RUN   TestGetURLData/passing_an_invalid_URL
--- FAIL: TestGetURLData (47.04s)
    --- FAIL: TestGetURLData/passing_a_valid_URL (47.04s)
        util_test.go:28: GetURLData was expected to succeed for the URL: http://example.com, but it failed with the error: failed fetching data from the URL http://example.com: Get http://example.com: dial tcp 93.184.216.34:80: i/o timeout
    --- PASS: TestGetURLData/passing_an_invalid_URL (0.00s)
=== RUN   TestFetchURLWithRetries
=== RUN   TestFetchURLWithRetries/passing_a_valid_URL
=== RUN   TestFetchURLWithRetries/passing_a_URL_with_no_DNS_resolution
=== RUN   TestFetchURLWithRetries/passing_a_blank_string_as_URL
=== RUN   TestFetchURLWithRetries/passing_a_URL_which_gives_a_non_200_OK_status_code_(gives_404)
--- PASS: TestFetchURLWithRetries (5.33s)
    --- PASS: TestFetchURLWithRetries/passing_a_valid_URL (0.91s)
    --- PASS: TestFetchURLWithRetries/passing_a_URL_with_no_DNS_resolution (2.25s)
    --- PASS: TestFetchURLWithRetries/passing_a_blank_string_as_URL (2.00s)
    --- PASS: TestFetchURLWithRetries/passing_a_URL_which_gives_a_non_200_OK_status_code_(gives_404) (0.17s)
FAIL
exit status 1
FAIL    github.com/redhat-developer/opencompose/pkg/util        52.376s

another run of same

$ go test -v github.com/redhat-developer/opencompose/pkg/util
=== RUN   TestGetURLData
=== RUN   TestGetURLData/passing_a_valid_URL
=== RUN   TestGetURLData/passing_an_invalid_URL
--- PASS: TestGetURLData (16.47s)
    --- PASS: TestGetURLData/passing_a_valid_URL (16.47s)
    --- PASS: TestGetURLData/passing_an_invalid_URL (0.00s)
=== RUN   TestFetchURLWithRetries
=== RUN   TestFetchURLWithRetries/passing_a_valid_URL
=== RUN   TestFetchURLWithRetries/passing_a_URL_with_no_DNS_resolution
=== RUN   TestFetchURLWithRetries/passing_a_blank_string_as_URL
=== RUN   TestFetchURLWithRetries/passing_a_URL_which_gives_a_non_200_OK_status_code_(gives_404)
--- PASS: TestFetchURLWithRetries (21.58s)
    --- PASS: TestFetchURLWithRetries/passing_a_valid_URL (16.87s)
    --- PASS: TestFetchURLWithRetries/passing_a_URL_with_no_DNS_resolution (2.55s)
    --- PASS: TestFetchURLWithRetries/passing_a_blank_string_as_URL (2.00s)
    --- PASS: TestFetchURLWithRetries/passing_a_URL_which_gives_a_non_200_OK_status_code_(gives_404) (0.16s)
PASS
ok      github.com/redhat-developer/opencompose/pkg/util        38.054s
@surajssd
Copy link
Contributor Author

closing since this was one time thing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant