Skip to content

Commit adf24f2

Browse files
committed
fix: use hardcoded test credentials instead of System.getenv
The test was using System.getenv() to read API credentials, but in the Gradle test JVM credentials are injected as system properties from local.properties, causing a NullPointerException in buildJWT(). Made-with: Cursor
1 parent 5a65825 commit adf24f2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/java/io/getstream/StreamHTTPClientTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ void testCustomOkHttpClientPreservesConfig() {
151151

152152
var sdkClient =
153153
new StreamSDKClient(
154-
System.getenv("STREAM_API_KEY"), System.getenv("STREAM_API_SECRET"), customHttp);
154+
"d2sj6pudbhz7",
155+
"qs9ukpbmau9s4kgz5bndfrhse9wc4v54w5u2zzawgt4fmjx42zkwegsxnsr32r9x",
156+
customHttp);
155157
OkHttpClient builtClient = sdkClient.getHttpClient().getHttpClient();
156158

157159
assertSame(customPool, builtClient.connectionPool());

0 commit comments

Comments
 (0)