Wrote embassy

This commit is contained in:
jay
2026-05-09 18:31:16 -04:00
parent e14f2b83a5
commit e909e140a8
6 changed files with 476 additions and 14 deletions
+23
View File
@@ -0,0 +1,23 @@
package prism
import (
"github.com/stretchr/testify/assert"
"testing"
"time"
)
const (
TestTimeout = 2 * time.Second
TestTick = 10 * time.Millisecond
NegativeTestTimeout = 100 * time.Millisecond
)
func Eventually(t *testing.T, condition func() bool, msg string) {
t.Helper()
assert.Eventually(t, condition, TestTimeout, TestTick, msg)
}
func Never(t *testing.T, condition func() bool, msg string) {
t.Helper()
assert.Never(t, condition, NegativeTestTimeout, TestTick, msg)
}