micro--go-micro
46c56ef7df
TestSingleEvent intermittently failed on cleanup with 'directory not empty': the embedded NATS JetStream server was still releasing files when t.TempDir's RemoveAll ran at test end. Own the store dir (os.MkdirTemp) and remove it only after server.Shutdown()+WaitForShutdown(). Also report setup errors with Errorf instead of Fatalf/require, which are unsafe from the non-test goroutine (go vet). Co-authored-by: Claude <noreply@anthropic.com>