replace go-acc, richgo with gotestsum (#3567)

This commit is contained in:
mmetc 2025-04-14 16:21:32 +02:00 committed by GitHub
parent 89761938c7
commit c17d42278f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 118 additions and 159 deletions

View file

@ -3,7 +3,6 @@ package csplugin
import (
"context"
"log"
"runtime"
"testing"
"time"
@ -49,11 +48,9 @@ func listenChannelWithTimeout(ctx context.Context, channel chan string) error {
}
func TestPluginWatcherInterval(t *testing.T) {
ctx := t.Context()
cstest.SkipOnWindowsBecause(t, "timing is not reliable")
if runtime.GOOS == "windows" {
t.Skip("Skipping test on windows because timing is not reliable")
}
ctx := t.Context()
pw := PluginWatcher{}
alertsByPluginName := make(map[string][]*models.Alert)
@ -85,11 +82,9 @@ func TestPluginWatcherInterval(t *testing.T) {
}
func TestPluginAlertCountWatcher(t *testing.T) {
ctx := t.Context()
cstest.SkipOnWindowsBecause(t, "timing is not reliable")
if runtime.GOOS == "windows" {
t.Skip("Skipping test on windows because timing is not reliable")
}
ctx := t.Context()
pw := PluginWatcher{}
alertsByPluginName := make(map[string][]*models.Alert)