Skip to content

Commit

Permalink
fix test after infra changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JW Wesson committed Dec 27, 2024
1 parent 65a1084 commit f47b92c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Textkernel.Tx.SDK.Tests/UnitTests/TxClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ public void TestDebugRequestBody()
}

[Test]
public void Test404Message()
public void Test401Error()
{
DataCenter fakeDC = new DataCenter("https://api.us.textkernel.com/tx/v9/fake");
TxClient client = new TxClient("1234", "1234", fakeDC);

TxException e = Assert.ThrowsAsync<TxException>(client.GetAccountInfo);

Assert.AreEqual(HttpStatusCode.NotFound, e.HttpStatusCode);
Assert.AreEqual("404 - Not Found", e.Message);
Assert.AreEqual(HttpStatusCode.Unauthorized, e.HttpStatusCode);
}

[Test]
Expand Down

0 comments on commit f47b92c

Please sign in to comment.