File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 164164 """
165165 def decorator(test_func):
166166 def wrapper():
167+ # Restart nix-daemon on both machines to clear the credential provider cache.
168+ # The AwsCredentialProviderImpl singleton persists in the daemon process,
169+ # and its cache can cause credentials from previous tests to be reused.
170+ # We reset-failed first to avoid systemd's start rate limiting.
171+ server.succeed("systemctl reset-failed nix-daemon.service nix-daemon.socket")
172+ server.succeed("systemctl restart nix-daemon")
173+ client.succeed("systemctl reset-failed nix-daemon.service nix-daemon.socket")
174+ client.succeed("systemctl restart nix-daemon")
175+
167176 bucket = str(uuid.uuid4())
168177 server.succeed(f"mc mb minio/{bucket}")
169178 try:
You can’t perform that action at this time.
0 commit comments