diff --git a/client/core/core_test.go b/client/core/core_test.go index d470d38b54..5bdacecb94 100644 --- a/client/core/core_test.go +++ b/client/core/core_test.go @@ -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() }