Browse Source

storage: fix struct alignment issue in test

The uint64 `numCalls` ends up being not word-aligned on certain architectures,
which makes atomic reads/writes panic.
pull/1975/head
Fabian Reinartz 8 years ago committed by GitHub
parent
commit
7bd7e63f97
  1. 2
      storage/remote/queue_manager_test.go

2
storage/remote/queue_manager_test.go

@ -152,8 +152,8 @@ func TestSampleDeliveryOrder(t *testing.T) {
// the `numCalls` property will contain a count of how many times Store() was
// called.
type TestBlockingStorageClient struct {
block chan bool
numCalls uint64
block chan bool
}
func NewTestBlockedStorageClient() *TestBlockingStorageClient {

Loading…
Cancel
Save