Skip to content

Commit a6a9798

Browse files
committed
test: use a random password in the ICE server test
1 parent 2357a79 commit a6a9798

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎webrtc/src/test/java/dev/onvoid/webrtc/RTCIceServerTests.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import static org.junit.jupiter.api.Assertions.assertFalse;
2020
import static org.junit.jupiter.api.Assertions.assertTrue;
2121

22+
import java.util.UUID;
23+
2224
import org.junit.jupiter.api.Test;
2325

2426
class RTCIceServerTests {
@@ -28,7 +30,7 @@ void toStringHidesPassword() {
2830
RTCIceServer server = new RTCIceServer();
2931
server.urls.add("turn:127.0.0.1:3478");
3032
server.username = "user";
31-
server.password = "s3cr3t-t0k3n";
33+
server.password = UUID.randomUUID().toString();
3234

3335
String text = server.toString();
3436

0 commit comments

Comments
 (0)