mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-25 20:54:41 -08: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 a new issue