You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// SkipUnless is the inverse of SkipIf: if the homeserver being tested is not present in the provided set, the test is skipped.
57
+
// This also means running without a blacklist tag will always skip.
58
+
funcSkipUnless(t ct.TestLike, hses...string) {
59
+
t.Helper()
60
+
ifslices.Contains(hses, Homeserver) {
61
+
return
62
+
}
63
+
ifHomeserver=="" {
64
+
t.Logf(
65
+
"WARNING: %s called runtime.SkipUnless(%v) but Complement doesn't know which HS is running as it was run without a *_blacklist tag: not executing test.",
66
+
t.Name(), hses,
67
+
)
68
+
}
69
+
t.Skipf("test only runs on specific homeservers: %v", hses)
0 commit comments