Skip to content

Commit

Permalink
remove old test debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-grzesiowski committed Sep 26, 2024
1 parent 4ecff45 commit 26ea127
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/UnitTests/PubnubApi.Tests/PubnubCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,5 @@ public static class PubnubCommon
static PubnubCommon()
{
}

public static string TEMP_DebugDump()
{
return $"EnvPAMServerSideRun: {EnvPAMServerSideRun}, EnvPublishKey: {EnvPublishKey[^4]}, EnvSubscribeKey: {EnvSubscribeKey[^4]}, EnvSecretKey: {EnvSecretKey[^4]}";
}
}
}
2 changes: 1 addition & 1 deletion src/UnitTests/PubnubApi.Tests/WhenFileIsRequested.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public static void ThenListFilesShouldReturnSuccess()
pubnub.Destroy();
pubnub.PubnubUnitTest = null;
pubnub = null;
Assert.IsTrue(receivedMessage, $"WhenFileIsRequested -> ThenListFilesShouldReturnSuccess failed. DUMP: {PubnubCommon.TEMP_DebugDump()}");
Assert.IsTrue(receivedMessage, $"WhenFileIsRequested -> ThenListFilesShouldReturnSuccess failed.");
}

[Test]
Expand Down
4 changes: 1 addition & 3 deletions src/UnitTests/PubnubApi.Tests/WhenObjectChannelMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,9 @@ public static void ThenChannelMetadataCRUDShouldReturnSuccessCodeAndInfo()
manualEvent.WaitOne(manualResetEventWaitTimeout);
}

Debug.WriteLine("---TEST---");

if (!receivedMessage)
{
Assert.IsTrue(receivedMessage, $"SetChannelMetadata/DeleteChannelMetadataId Failed, DUMP:\n{PubnubCommon.TEMP_DebugDump()}");
Assert.IsTrue(receivedMessage, $"SetChannelMetadata/DeleteChannelMetadataId Failed.");
}

pubnub.Destroy();
Expand Down

0 comments on commit 26ea127

Please sign in to comment.