diff --git a/vault/activity_log_test.go b/vault/activity_log_test.go
index <HASH>..<HASH> 100644
--- a/vault/activity_log_test.go
+++ b/vault/activity_log_test.go
@@ -445,7 +445,9 @@ func TestActivityLog_MultipleFragmentsAndSegments(t *testing.T) {
 	// enabled check is now inside AddEntityToFragment
 	a.enabled = true
 	// set a nonzero segment
+	a.l.Lock()
 	a.currentSegment.startTimestamp = time.Now().Unix()
+	a.l.Unlock()
 
 	// Stop timers for test purposes
 	close(a.doneCh)
Use a lock to address race. (#<I>)