working commit

This commit is contained in:
2026-02-12 17:16:28 +02:00
parent 9b29364d6b
commit fbbb09a3cb
2 changed files with 41 additions and 25 deletions
+9 -23
View File
@@ -115,30 +115,16 @@ func TestAccountLife(t *testing.T) {
fmt.Printf("accounts:\n%s\n", string(accountsYAML))
}
/*
{
// DeleteAccount
fmt.Printf("=== DeleteAccount ===\n")
cli := NewClient()
ctx := context.Background()
ctx, _ = context.WithTimeout(ctx, 1*time.Second)
{
// DeleteAccount
fmt.Printf("=== DeleteAccount ===\n")
cli := NewClient()
ctx := context.Background()
ctx, _ = context.WithTimeout(ctx, 1*time.Second)
err = cli.DeleteAccount(ctx, srvaddr+"/foo.bin")
require.NoError(t, err)
}
err = cli.DeleteAccountByID(ctx, srvaddr, accountID)
require.NoError(t, err)
}
{
// !AccountExists
fmt.Printf("=== AccountExists ===\n")
cli := NewClient()
ctx := context.Background()
ctx, _ = context.WithTimeout(ctx, 1*time.Second)
exists, _, err := cli.AccountInfo(ctx, srvaddr+"/foo.bin")
require.NoError(t, err)
require.False(t, exists)
}
*/
}