mirror of
https://github.com/prometheus/prometheus
synced 2025-01-15 19:32:05 +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
|
// the `numCalls` property will contain a count of how many times Store() was
|
||||||
// called.
|
// called.
|
||||||
type TestBlockingStorageClient struct {
|
type TestBlockingStorageClient struct {
|
||||||
block chan bool
|
|
||||||
numCalls uint64
|
numCalls uint64
|
||||||
|
block chan bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTestBlockedStorageClient() *TestBlockingStorageClient {
|
func NewTestBlockedStorageClient() *TestBlockingStorageClient {
|
||||||
|
Loading…
Reference in New Issue
Block a user