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.
This commit is contained in:
Fabian Reinartz 2016-09-11 00:32:57 +02:00 committed by GitHub
parent 7e28b4509d
commit 7bd7e63f97

View File

@ -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 {