Skip to content

Commit da7f705

Browse files
author
Simon MacMullen
committed
Impersonator tag no longer exists, remove it. And be a bit less racy.
1 parent 7af142c commit da7f705

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

test/src/com/rabbitmq/client/test/functional/UserIDHeader.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package com.rabbitmq.client.test.functional;
1818

1919
import com.rabbitmq.client.AMQP;
20+
import com.rabbitmq.client.AlreadyClosedException;
2021
import com.rabbitmq.client.test.BrokerTestCase;
21-
import com.rabbitmq.tools.Host;
2222

2323
import java.io.IOException;
2424

@@ -36,18 +36,8 @@ public void testInvalidUserId() {
3636
fail("Accepted publish with incorrect user ID");
3737
} catch (IOException e) {
3838
checkShutdownSignal(AMQP.PRECONDITION_FAILED, e);
39-
}
40-
}
41-
42-
public void testImpersonatedUserId() throws IOException {
43-
Host.rabbitmqctl("set_user_tags guest administrator impersonator");
44-
connection = null;
45-
channel = null;
46-
setUp();
47-
try {
48-
publish(BAD);
49-
} finally {
50-
Host.rabbitmqctl("set_user_tags guest administrator");
39+
} catch (AlreadyClosedException e) {
40+
checkShutdownSignal(AMQP.PRECONDITION_FAILED, e);
5141
}
5242
}
5343

0 commit comments

Comments
 (0)