-
-
Notifications
You must be signed in to change notification settings - Fork 422
Commit ea09108
Fix monitor init handling (#2728)
* Fixed linter warn
* Added integration test
* Fixed monitor dead-locking package manager
* Fix integration test: Allow some time for the mocked-monitor process to terminate
otherwise the test will fail on Windows when the cleanup function tries to remove the
executable:
Error Trace: D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:46
D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:56
D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:56
D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:62
D:/a/arduino-cli/arduino-cli/internal/integrationtest/daemon/daemon_concurrency_test.go:127
Error: Received unexpected error:
remove C:\Users\runneradmin\AppData\Local\Temp\cli2489057723\A\packages\builtin\tools\serial-monitor0円.14.1\serial-monitor.exe: Access is denied.
Test: TestInitAndMonitorConcurrency1 parent ac6ec6d commit ea09108
File tree
3 files changed
+55
-2
lines changed- commands
- internal
- cli/daemon
- integrationtest/daemon
3 files changed
+55
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 | - | ||
129 | 128 |
| |
129 | + | ||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | - | ||
39 | 38 |
| |
40 | 39 |
| |
41 | 40 |
| |
|
Lines changed: 54 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 | + | ||
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
76 | 77 |
| |
77 | 78 |
| |
78 | 79 |
| |
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + | ||
132 | + |
0 commit comments