From 7bd7e63f97bc917dd65d65ccd7c4591361219e6c Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Sun, 11 Sep 2016 00:32:57 +0200 Subject: [PATCH] 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. --- storage/remote/queue_manager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/remote/queue_manager_test.go b/storage/remote/queue_manager_test.go index f3bd85aa3..839113fb6 100644 --- a/storage/remote/queue_manager_test.go +++ b/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 {