mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-06 20:09:44 +00:00
Merge pull request #757 from lifupan/fixbuiltinproxy
virtcontainers: fix the issue of missing starting builtin proxy
This commit is contained in:
commit
7f65751f62
@ -247,7 +247,6 @@ func (k *kataAgent) configure(h hypervisor, id, sharePath string, builtin bool,
|
|||||||
|
|
||||||
if builtin {
|
if builtin {
|
||||||
k.proxyBuiltIn = true
|
k.proxyBuiltIn = true
|
||||||
k.state.URL, _ = k.agentURL()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adding the shared volume.
|
// Adding the shared volume.
|
||||||
|
@ -649,6 +649,7 @@ func TestAgentConfigure(t *testing.T) {
|
|||||||
|
|
||||||
err = k.configure(h, id, dir, true, c)
|
err = k.configure(h, id, dir, true, c)
|
||||||
assert.Nil(err)
|
assert.Nil(err)
|
||||||
|
assert.Empty(k.state.URL)
|
||||||
|
|
||||||
err = k.configure(h, id, dir, false, c)
|
err = k.configure(h, id, dir, false, c)
|
||||||
assert.Nil(err)
|
assert.Nil(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user