Skip to content

Commit

Permalink
update utils_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk committed Nov 17, 2024
1 parent a851f2a commit e4cc602
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clients/tfchain-client-go/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ func startLocalConnection(t *testing.T) *Substrate {
return cl
}

func getUrlBasedOnEnv() string {
if _, ok := os.LookupEnv("CI"); ok {
return "ws://127.0.0.1:9944"
} else {
return "wss://tfchain.dev.grid.tf"
}
}

func assertCreateTwin(t *testing.T, cl *Substrate, user AccountUser) uint32 {
u := Accounts[user]

Expand Down

0 comments on commit e4cc602

Please sign in to comment.