Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
add skip on deadline
Browse files Browse the repository at this point in the history
Signed-off-by: lwsanty <[email protected]>
  • Loading branch information
lwsanty committed Nov 12, 2019
1 parent 4e678a9 commit 3e7592d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions metaclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func testGetNotSupportedClient(t *testing.T, mc *MetaClient) {
defer cancel()

_, err := mc.GetClientContext(ctx, "lang")
if err == context.DeadlineExceeded {
t.Skip("bblfshd is not running")
}
require.True(t, ErrLangNotSupported.Is(err))
}

Expand All @@ -62,6 +65,9 @@ func getClientContextAndParse(
language,
content string) {
c, err := mc.GetClientContext(ctx, language)
if err == context.DeadlineExceeded {
t.Skip("bblfshd is not running")
}
require.NoError(t, err)

res, err := c.NewParseRequest().Mode(Native).Language(language).Content(content).Do()
Expand Down

0 comments on commit 3e7592d

Please sign in to comment.