Skip to content

Commit b36bb34

Browse files
authored
re add agent not found test (#1311)
1 parent 8676430 commit b36bb34

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

agent_integration_test.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ func TestAgentsRead(t *testing.T) {
3333
assert.Equal(t, agent, k)
3434
})
3535

36-
// NOTE!! Commenting out test to unblock PRs pending a fix in the API.
37-
// Please re-enable once the API is fixed.
38-
// t.Run("when the agent does not exist", func(t *testing.T) {
39-
// k, err := client.Agents.Read(ctx, "nonexistent")
40-
// assert.Nil(t, k)
41-
// assert.Equal(t, err, ErrResourceNotFound)
42-
// })
36+
t.Run("when the agent does not exist", func(t *testing.T) {
37+
k, err := client.Agents.Read(ctx, "nonexistent")
38+
assert.Nil(t, k)
39+
assert.Equal(t, err, ErrResourceNotFound)
40+
})
4341

4442
t.Run("without a valid agent ID", func(t *testing.T) {
4543
k, err := client.Agents.Read(ctx, badIdentifier)

0 commit comments

Comments
 (0)