Fix APK builder test database cleanup on Windows.

Close the SQLite handle before temp dir teardown so TestBuildAPKAgentMockGradle passes reliably on Windows CI.
This commit is contained in:
AetherForge
2026-06-07 02:45:37 -07:00
parent 1d492fa119
commit aaa6fc77a4

View File

@@ -39,7 +39,8 @@ func TestPlatformsForRequestApkMode(t *testing.T) {
}
func TestBuildAPKAgentMockGradle(t *testing.T) {
h, _ := testHandlerDB(t)
h, database := testHandlerDB(t)
t.Cleanup(func() { _ = database.Close() })
setFakeGoSuccess(t, h)
androidDir := filepath.Join(h.projectRoot, "android")