Skip to content

Commit

Permalink
add small test
Browse files Browse the repository at this point in the history
Signed-off-by: Future Outlier <[email protected]>
  • Loading branch information
Future Outlier committed Dec 10, 2023
1 parent aa24087 commit 9f14c08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ func TestPlugin(t *testing.T) {
assert.NotNil(t, err)
})

t.Run("test getAgentMetadataClientFunc", func(t *testing.T) {
client, err := getAgentMetadataClientFunc(context.Background(), &Agent{Endpoint: "localhost:80"}, map[*Agent]*grpc.ClientConn{})
assert.NoError(t, err)
assert.NotNil(t, client)
})

t.Run("test getAsyncClientFunc", func(t *testing.T) {
client, err := getAsyncClientFunc(context.Background(), &Agent{Endpoint: "localhost:80"}, map[*Agent]*grpc.ClientConn{})
assert.NoError(t, err)
Expand Down

0 comments on commit 9f14c08

Please sign in to comment.