mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-15 16:07:55 +00:00
Make opt-in flag
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"heckel.io/ntfy/v2/server"
|
||||
"heckel.io/ntfy/v2/test"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestCLI_Access_Show(t *testing.T) {
|
||||
@@ -44,12 +43,6 @@ user * (role: anonymous, tier: none)
|
||||
`
|
||||
require.Equal(t, expected, stdout.String())
|
||||
|
||||
// The CLI commands above ran against a separate Manager instance (their own
|
||||
// process-equivalent), so the server's ACL cache hasn't seen the new grants
|
||||
// yet. Wait for the server's background reloader (interval set in
|
||||
// newTestServerWithAuth) to pick them up.
|
||||
time.Sleep(150 * time.Millisecond)
|
||||
|
||||
// See if access permissions match
|
||||
app, _, _, _ = newTestApp()
|
||||
require.Error(t, app.Run([]string{
|
||||
|
||||
Reference in New Issue
Block a user