Skip to content

Commit

Permalink
fix race condition in core tests when updating sync status field (#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 authored Jan 31, 2025
1 parent 11992ad commit 5fe8b39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/core/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3031,7 +3031,9 @@ func trade(t *testing.T, async bool) {

setWalletSyncStatus := func(w *xcWallet, status bool) {
w.mtx.Lock()
w.syncStatus.Synced = status
ss := *w.syncStatus
ss.Synced = status
w.syncStatus = &ss
w.mtx.Unlock()
}

Expand Down

0 comments on commit 5fe8b39

Please sign in to comment.