Skip to content

Commit 8766b9f

Browse files
author
Hamed Soleimani
committed
update tests after rebase
1 parent dbc2651 commit 8766b9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/amazonq/chat/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevSessionContextTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class FeatureDevSessionContextTest : FeatureDevTestBase() {
5454

5555
@Test
5656
fun testAllowedFilePath() {
57-
val allowedPaths = listOf("Dockerfile", "Dockerfile.build", "gradlew", "build.gradle", "gradle.properties", ".mvn/wrapper/maven-wrapper.properties")
57+
val allowedPaths = listOf("gradlew", "build.gradle", "gradle.properties", ".mvn/wrapper/maven-wrapper.properties")
5858
allowedPaths.forEach({
5959
val txtFile = mock<VirtualFile>()
6060
whenever(txtFile.path).thenReturn(it)

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/FeatureDevSessionContext.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class FeatureDevSessionContext(val project: Project, val maxProjectSizeBytes: Lo
218218
withContext(Dispatchers.IO) {
219219
zipfsPath.createParentDirectories()
220220
Files.copy(externalFilePath, zipfsPath, StandardCopyOption.REPLACE_EXISTING)
221-
Files.setAttribute(zipfsPath, "zip:permissions", externalFilePermissions);
221+
Files.setAttribute(zipfsPath, "zip:permissions", externalFilePermissions)
222222
}
223223
}
224224
}
@@ -228,7 +228,7 @@ class FeatureDevSessionContext(val project: Project, val maxProjectSizeBytes: Lo
228228

229229
private suspend fun createTemporaryZipFileAsync(block: suspend (FileSystem) -> Unit): Path = withContext(EDT) {
230230
// Don't use Files.createTempFile since the file must not be created for ZipFS to work
231-
val tempFilePath: Path = Paths.get(FileUtils.getTempDirectory().getAbsolutePath(), "${UUID.randomUUID()}.zip")
231+
val tempFilePath: Path = Paths.get(FileUtils.getTempDirectory().absolutePath, "${UUID.randomUUID()}.zip")
232232
val uri = URI.create("jar:file:${tempFilePath}")
233233
val env = hashMapOf("create" to "true")
234234
val zipfs = FileSystems.newFileSystem(uri, env)

0 commit comments

Comments
 (0)