Skip to content

Commit

Permalink
chore: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Sep 25, 2023
1 parent 9436bb9 commit 53373da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Client.Test.Integration/QueryWriteTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public async Task QueryWrite()
var points = await client.QueryPoints(sql).ToListAsync();
Assert.That(points, Has.Count.EqualTo(1));
Assert.That(points.First().GetField("value"), Is.EqualTo(123.0));

points = await client.QueryPoints($"SELECT * FROM {measurement} where \"testId\" = {testId}").ToListAsync();
Assert.That(points, Has.Count.EqualTo(1));
Assert.That(points.First().GetField("value"), Is.EqualTo(123.0));
Assert.That(points.First().GetTag("type"), Is.EqualTo("used"));
}

[Test]
Expand Down

0 comments on commit 53373da

Please sign in to comment.