mirror of
https://github.com/prometheus/prometheus
synced 2024-12-28 01:32:19 +00:00
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:
parent
7e28b4509d
commit
7bd7e63f97
@ -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…
Reference in New Issue
Block a user