Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 61b66a7

Browse filesBrowse files
committed
Fixed test
1 parent 0453677 commit 61b66a7
Copy full SHA for 61b66a7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-12
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-12
lines changed

‎commands/service_platform_search_test.go

Copy file name to clipboardExpand all lines: commands/service_platform_search_test.go
+2-12Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ func TestPlatformSearch(t *testing.T) {
3838
ctx := context.Background()
3939
srv := NewArduinoCoreServer()
4040

41-
conf, err := paths.TempDir().Join("test", "arduino-cli.yaml").ReadFile()
42-
require.NoError(t, err)
43-
_, err = srv.ConfigurationOpen(ctx, &rpc.ConfigurationOpenRequest{
44-
SettingsFormat: "yaml",
45-
EncodedSettings: string(conf),
46-
})
41+
_, err = srv.ConfigurationOpen(ctx, &rpc.ConfigurationOpenRequest{SettingsFormat: "yaml"})
4742
require.NoError(t, err)
4843

4944
createResp, err := srv.Create(ctx, &rpc.CreateRequest{})
@@ -347,12 +342,7 @@ func TestPlatformSearchSorting(t *testing.T) {
347342
ctx := context.Background()
348343
srv := NewArduinoCoreServer()
349344

350-
conf, err := paths.TempDir().Join("test", "arduino-cli.yaml").ReadFile()
351-
require.NoError(t, err)
352-
_, err = srv.ConfigurationOpen(ctx, &rpc.ConfigurationOpenRequest{
353-
SettingsFormat: "yaml",
354-
EncodedSettings: string(conf),
355-
})
345+
_, err = srv.ConfigurationOpen(ctx, &rpc.ConfigurationOpenRequest{SettingsFormat: "yaml"})
356346
require.NoError(t, err)
357347

358348
createResp, err := srv.Create(ctx, &rpc.CreateRequest{})

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.