aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-26 02:55:01 +0700
committerShulhan <ms@kilabit.info>2026-01-26 02:55:13 +0700
commitb5e7b1fefd3a3a92584653f392e44f29c29895db (patch)
treefbefced0b1eddd7aa1686d828c5bb69da9d178e3 /Makefile
parent869ccbbf77a49ae647e67c8a963be077c5d143d0 (diff)
downloadpakakeh.go-b5e7b1fefd3a3a92584653f392e44f29c29895db.tar.xz
make: increase test timeout to 2m due to lib/email/dkim takes more 60s
Just for record, with 1m timeout, it will cause the following error, ---- panic: test timed out after 1m0s running tests: TestSignatureSign (0s) goroutine 8 [running]: testing.(*M).startAlarm.func1() /home/ms/local/share/go/src/testing/testing.go:2806 +0x605 created by time.goFunc /home/ms/local/share/go/src/time/sleep.go:215 +0x45 goroutine 1 [chan receive]: testing.(*T).Run(0xc000148488, {0x82e9cf, 0x11}, 0xb1eed8) /home/ms/local/share/go/src/testing/testing.go:2109 +0xb3e testing.runTests.func1(0xc000148488) /home/ms/local/share/go/src/testing/testing.go:2589 +0x86 testing.tRunner(0xc000148488, 0xc00013dab0) /home/ms/local/share/go/src/testing/testing.go:2036 +0x21d testing.runTests({0x83415e, 0x1d}, {0x83b055, 0x2c}, 0xc000016588, {0xb7aee0, 0x14, 0x14}, {0xc255bab7b14073ac, 0xdf8581351, ...}) /home/ms/local/share/go/src/testing/testing.go:2587 +0xb18 testing.(*M).Run(0xc00014a460) /home/ms/local/share/go/src/testing/testing.go:2443 +0xf45 main.main() _testmain.go:94 +0x165 goroutine 24 [runnable]: crypto/internal/fips140/bigmod.(*Nat).montgomeryMul(0xc000298da8?, 0xc0002996e8?, 0xc000298da8?, 0xc000065cc0?) /home/ms/local/share/go/src/crypto/internal/fips140/bigmod/nat.go:779 +0xab8 crypto/internal/fips140/bigmod.(*Nat).Exp(0xc0002996e8, 0xc000299700, {0xc0000254c0, 0x40, 0xc000065ca0?}, 0xc000065cc0) /home/ms/local/share/go/src/crypto/internal/fips140/bigmod/nat.go:1028 +0xa57 crypto/internal/fips140/rsa.decrypt(0xc00001a2a0, {0xc00006f300, 0x80, 0x80}, 0x1) /home/ms/local/share/go/src/crypto/internal/fips140/rsa/rsa.go:428 +0x466 crypto/internal/fips140/rsa.signPKCS1v15(0xc00001a2a0, {0x82a7e6, 0x5}, {0xc00001f4a0, 0x14, 0x14}) /home/ms/local/share/go/src/crypto/internal/fips140/rsa/pkcs1v15.go:60 +0xc5 crypto/internal/fips140/rsa.SignPKCS1v15(0xc00001a2a0, {0x82a7e6, 0x5}, {0xc00001f4a0, 0x14, 0x14}) /home/ms/local/share/go/src/crypto/internal/fips140/rsa/pkcs1v15.go:51 +0x259 crypto/rsa.SignPKCS1v15({0xc0002999b8?, 0x45b525?}, 0xc00001a230, 0x3, {0xc00001f4a0, 0x14, 0x14}) /home/ms/local/share/go/src/crypto/rsa/fips.go:353 +0x289 git.sr.ht/~shulhan/pakakeh.go/lib/email/dkim.(*Signature).Sign(0xc000299db0, 0xc00001a230, {0xc00001f4a0, 0x14, 0x14}) /home/ms/kilabit.info/_project/src/pakakeh.go/lib/email/dkim/signature.go:281 +0x192 git.sr.ht/~shulhan/pakakeh.go/lib/email/dkim.TestSignatureSign(0xc00017a908) /home/ms/kilabit.info/_project/src/pakakeh.go/lib/email/dkim/signature_test.go:354 +0x62c testing.tRunner(0xc00017a908, 0xb1eed8) /home/ms/local/share/go/src/testing/testing.go:2036 +0x21d created by testing.(*T).Run in goroutine 1 /home/ms/local/share/go/src/testing/testing.go:2101 +0xb13 FAIL git.sr.ht/~shulhan/pakakeh.go/lib/email/dkim 60.085s ---- I think it is related to fips140 has been merged to the go tip that increase the time.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ea24513e..6d506485 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ build:
$(BUILD_FLAGS) -o _bin/ ./cmd/...
test:
- CGO_ENABLED=1 go test -failfast -timeout=1m -race -coverprofile=$(COVER_OUT) ./...
+ CGO_ENABLED=1 go test -failfast -timeout=2m -race -coverprofile=$(COVER_OUT) ./...
go tool cover -html=$(COVER_OUT) -o $(COVER_HTML)
test.prof: