Skip to content

Commit 1909ab7

Browse files
committed
Removed useless field in gRPC ProfileCreateResponse
1 parent 4f527c0 commit 1909ab7

File tree

4 files changed

+499
-515
lines changed

4 files changed

+499
-515
lines changed

commands/service_profile_init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,5 @@ func (s *arduinoCoreServerImpl) ProfileCreate(ctx context.Context, req *rpc.Prof
101101
}
102102
}
103103

104-
return &rpc.ProfileCreateResponse{ProjectFilePath: projectFilePath.String()}, nil
104+
return &rpc.ProfileCreateResponse{}, nil
105105
}

internal/integrationtest/daemon/profile_lib_commands_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ func TestProfileLibAddListAndRemov(t *testing.T) {
6666
}))
6767

6868
// Create a new profile
69-
resp, err := grpcInst.ProfileCreate(t.Context(), "test", sk.String(), "arduino:avr:uno", true)
69+
_, err = grpcInst.ProfileCreate(t.Context(), "test", sk.String(), "arduino:avr:uno", true)
7070
require.NoError(t, err)
71-
projectFile := paths.New(resp.GetProjectFilePath())
71+
projectFile := sk.Join("sketch.yaml")
7272

7373
expect := func(expected string) {
7474
p, _ := projectFile.ReadFile()
@@ -334,9 +334,9 @@ func TestProfileLibRemoveWithDeps(t *testing.T) {
334334
}))
335335

336336
// Create a new profile
337-
resp, err := grpcInst.ProfileCreate(t.Context(), "test", sk.String(), "arduino:avr:uno", true)
337+
_, err = grpcInst.ProfileCreate(t.Context(), "test", sk.String(), "arduino:avr:uno", true)
338338
require.NoError(t, err)
339-
projectFile := paths.New(resp.GetProjectFilePath())
339+
projectFile := sk.Join("sketch.yaml")
340340

341341
expect := func(expected string) {
342342
p, _ := projectFile.ReadFile()

0 commit comments

Comments
 (0)