Skip to content

Commit 01f89bf

Browse files
committed
fixed integration tests
1 parent 0eabce8 commit 01f89bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func waitForSync(t *testing.T, client *mina.Client) {
5656
start := time.Now()
5757
for time.Since(start) < maxWait {
5858
status, err := client.GetSyncStatus()
59-
if err == nil && status == "SYNCED" {
59+
if err == nil && status == mina.SyncStatusSynced {
6060
return
6161
}
6262
if err != nil {
@@ -100,7 +100,7 @@ func TestIntegrationDaemonStatus(t *testing.T) {
100100
if err != nil {
101101
t.Fatal(err)
102102
}
103-
if status.SyncStatus != "SYNCED" {
103+
if status.SyncStatus != mina.SyncStatusSynced {
104104
t.Errorf("expected SYNCED, got %s", status.SyncStatus)
105105
}
106106
if status.BlockchainLength == nil || *status.BlockchainLength <= 0 {

0 commit comments

Comments
 (0)