You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bcf1e9f
Browse filesBrowse the repository at this point in the historyBrowse files
removeByName: tested on unreadable output, quiet on a network gone before its removal (#189)
Review round 44: the fake gives an inspect answer that is not JSON (reported,
nothing removed, never thrown) and a network gone between inspect and removal,
which Docker 27.4 answers 'network <ID> not found' and removeByName now treats as
gone; the keeper comment says afterAll also removes it by name; a comment line
is rewrapped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
" 'container lost') echo 'Failed to initialize: unable to resolve docker endpoint: context \"x\": context not found: open /x/meta.json: no such file or directory' >&2; exit 1;;",
77
81
'esac; exit 0; fi',
78
82
`if [ "$1" = rm ]; then echo 'Error response from daemon: removal of container ${id} is already in progress' >&2; exit 1; fi`,
83
+
`if [ "$1 $2 $3" = 'network rm ${raced}' ]; then echo 'Error response from daemon: network ${raced} not found' >&2; exit 1; fi`,
79
84
`if [ "$1 $2" = 'network rm' ]; then echo 'Error response from daemon: error while removing network: network busy id ${other} has active endpoints' >&2; exit 1; fi`,
80
85
`if [ "$1 $2" = 'volume rm' ]; then echo 'Error response from daemon: remove busy: volume is in use - [${id}]' >&2; exit 1; fi`,
'Failed to initialize: unable to resolve docker endpoint: context "x": context not found: open /x/meta.json: no such file or directory'],
105
+
['test: removing container junk: docker printed what is not JSON:','not json\n'],
99
106
]);
100
107
});
101
108
@@ -148,8 +155,8 @@ it.each([
148
155
// Answers as Docker 27.4 does for one swept network with two candidate holders, one gone before the inspect: the
149
156
// inspect prints the other and exits 1. Every other call gets no output and exit 0, as for `ls` with no match; the
150
157
// removals' stdout (the removed IDs or names in 27.4) is not read. The second case's answer is invented: it stands in
151
-
// for an unexpected inspect failure that still printed some holders, which 27.4 is not known to give. The network line holds only the fields the sweep
152
-
// reads (27.4 also prints CreatedAt, Driver, IPv6, Internal, Labels and Scope), and the inspect an empty endpoint for
158
+
// for an unexpected inspect failure that still printed some holders, which 27.4 is not known to give. The network
159
+
// line holds only the fields the sweep reads (27.4 also prints CreatedAt, Driver, IPv6, Internal, Labels and Scope), and the inspect an empty endpoint for
153
160
// the network, where 27.4 gives its full settings: the sweep reads only the network names.
0 commit comments