Wrote embassy

This commit is contained in:
Jay
2026-05-09 17:36:03 -04:00
parent e14f2b83a5
commit e909e140a8
6 changed files with 477 additions and 15 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)
}