All checks were successful
CI / build-test (push) Successful in 1m42s
- Remove TestMain (no longer needed; each test is isolated) - Replace all diun.UpdatesReset() with diun.NewTestServer() per test - Replace all diun.SetWebhookSecret/ResetWebhookSecret with NewTestServerWithSecret - Replace all diun.WebhookHandler etc with srv.WebhookHandler (method calls) - Replace diun.UpdateEvent with srv.TestUpsertEvent - Replace diun.GetUpdatesMap with srv.TestGetUpdatesMap - Update helper functions postTag/postTagAndGetID to accept *diun.Server parameter - Change t.Fatalf to t.Errorf inside goroutine in TestConcurrentUpdateEvent - Add error check on second TestUpsertEvent in TestDismissHandler_ReappearsAfterNewWebhook - All 32 tests pass with zero failures
25 KiB
25 KiB