Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
remove heavy object nesting in tests
  • Loading branch information
deansheather committed May 27, 2022
commit 6b95e54bf4cce1c29d3d7620c9afd0977414f533
21 changes: 1 addition & 20 deletions provisionerd/provisionerd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,26 +378,7 @@ func TestProvisionerd(t *testing.T) {
err := stream.Send(&sdkproto.Provision_Response{
Type: &sdkproto.Provision_Response_Complete{
Complete: &sdkproto.Provision_Complete{
Resources: []*sdkproto.Resource{
{
Name: "test-resource",
Type: "test_type",
Agents: []*sdkproto.Agent{
{
Id: "test-id",
Name: "test",
Env: map[string]string{},
StartupScript: "echo hi",
OperatingSystem: "linux",
Architecture: "amd64",
Directory: "/home/coder",
Auth: &sdkproto.Agent_Token{
Token: "test-token",
},
},
},
},
},
Resources: []*sdkproto.Resource{},
},
},
})
Expand Down