[
https://issues.apache.org/jira/browse/BEAM-13878?focusedWorklogId=732602&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-732602
]
ASF GitHub Bot logged work on BEAM-13878:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Feb/22 19:10
Start Date: 24/Feb/22 19:10
Worklog Time Spent: 10m
Work Description: pavel-avilov commented on a change in pull request
#16912:
URL: https://github.com/apache/beam/pull/16912#discussion_r814187262
##########
File path: playground/backend/internal/fs_tool/fs_test.go
##########
@@ -30,18 +30,29 @@ const (
destinationDir = "destinationDir"
testFileMode = 0755
pipelinesFolder = "executable_files"
+ fileName = "file.txt"
+ directoryName = "incorrect"
)
+func TestMain(m *testing.M) {
+ err := prepareFiles()
+ if err != nil {
+ panic(fmt.Errorf("error during test setup: %s", err.Error()))
+ }
+ defer teardownFiles()
+ m.Run()
+}
+
func prepareFiles() error {
- err := os.Mkdir(sourceDir, testFileMode)
+ err := os.MkdirAll(filepath.Join(sourceDir, directoryName),
testFileMode)
Review comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 732602)
Time Spent: 40m (was: 0.5h)
> [Playground] Increase test coverage for the fs_tool package
> -----------------------------------------------------------
>
> Key: BEAM-13878
> URL: https://issues.apache.org/jira/browse/BEAM-13878
> Project: Beam
> Issue Type: Sub-task
> Components: beam-playground
> Reporter: Aydar Zaynutdinov
> Assignee: Pavel Avilov
> Priority: P3
> Labels: beam-playground-backend
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Need to add unit tests to increase test coverage for the _fs_tool_ package.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)