mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-11-04 11:50:15 +00:00 
			
		
		
		
	runtime: fix UT build failure
storeContainer has been removed. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
		@@ -689,18 +689,3 @@ func TestConfigValid(t *testing.T) {
 | 
				
			|||||||
	result = config.valid()
 | 
						result = config.valid()
 | 
				
			||||||
	assert.True(result)
 | 
						assert.True(result)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
func TestStoreContainer(t *testing.T) {
 | 
					 | 
				
			||||||
	hConfig := newHypervisorConfig(nil, nil)
 | 
					 | 
				
			||||||
	sandbox, err := testCreateSandbox(t, testSandboxID, MockHypervisor, hConfig, NetworkConfig{}, nil, nil)
 | 
					 | 
				
			||||||
	assert.NoError(t, err)
 | 
					 | 
				
			||||||
	defer cleanUp()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	container := &Container{
 | 
					 | 
				
			||||||
		sandbox: sandbox,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	err = container.storeContainer()
 | 
					 | 
				
			||||||
	assert.Nil(t, err, "store container should succeed")
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user