Skip to content

Commit

Permalink
Run the test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DeividasK committed Nov 22, 2024
1 parent b7e606d commit 73caca4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
test:
runs-on: ubuntu-latest
env:
CTF_CONFIGS: smoke.toml
CTF_CONFIGS: environment.toml
CTF_LOG_LEVEL: info
CTF_LOKI_STREAM: "false"
PRIVATE_KEY: ${{ secrets.CTF_SIMULATED_KEY_1 }}
Expand All @@ -31,4 +31,4 @@ jobs:
run: go mod download
- name: Run tests
working-directory: e2e/capabilities
run: go test -v -run TestDON
run: go test -v -run TestWorkflow
11 changes: 5 additions & 6 deletions e2e/capabilities/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,19 +711,18 @@ targets:
select {
case <-ctx.Done():
t.Fatalf("feed did not update, timeout after %s", timeout)

case <-time.After(5 * time.Second):
price, timestamp, err := feedsConsumerContract.GetPrice(
price, _, err := feedsConsumerContract.GetPrice(
sc.NewCallOpts(),
common.HexToHash(feedID),
)
require.NoError(t, err)
if price.String() != "0" && timestamp != 0 {
fmt.Printf("Feed updated - price and timestamp set to %s and %d", price, timestamp)

if price.String() != "0" {
fmt.Printf("\nFeed updated - price set, price=%s", price)
return
} else {
fmt.Println("Feed not updated yet - price and timestamp not set yet")
}
fmt.Println("Feed not updated yet")
}
}
})
Expand Down

0 comments on commit 73caca4

Please sign in to comment.