Skip to content

Commit 2da10aa

Browse files
dswarbrickDeryugin, Nikolay
authored and
Deryugin, Nikolay
committed
Fix test build failures on 32-bit arch again (prometheus-community#919)
Another case of untyped integer overflows on 32-bit arch. Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com> Signed-off-by: Deryugin, Nikolay <nikolay.deryugin@itglobal.com>
1 parent aed2818 commit 2da10aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: collector/pg_stat_walreceiver_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ func TestPGStatWalReceiverCollectorWithFlushedLSN(t *testing.T) {
6464
"foo",
6565
"bar",
6666
"stopping",
67-
1200668684563608,
67+
int64(1200668684563608),
6868
1687321285,
69-
1200668684563609,
69+
int64(1200668684563609),
7070
1687321280,
7171
1687321275,
7272
1687321276,
73-
1200668684563610,
73+
int64(1200668684563610),
7474
1687321277,
7575
5,
7676
)
@@ -143,12 +143,12 @@ func TestPGStatWalReceiverCollectorWithNoFlushedLSN(t *testing.T) {
143143
"foo",
144144
"bar",
145145
"starting",
146-
1200668684563608,
146+
int64(1200668684563608),
147147
1687321285,
148148
1687321280,
149149
1687321275,
150150
1687321276,
151-
1200668684563610,
151+
int64(1200668684563610),
152152
1687321277,
153153
5,
154154
)

0 commit comments

Comments
 (0)