Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
tests: Improve comments.
Browse files Browse the repository at this point in the history
Fixed the function name for the realMakeOCIBundle() comment header.
Also added a warning that tests should call makeOCIBundle(), not
realMakeOCIBundle().

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Aug 29, 2017
1 parent 111c1e3 commit 9df259b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,11 @@ func createRootfs(dir string) error {
return nil
}

// makeOCIBundle will create an OCI bundle (including the "config.json"
// realMakeOCIBundle will create an OCI bundle (including the "config.json"
// config file) in the directory specified (which must already exist).
//
// XXX: Note that tests should *NOT* call this function - they should
// XXX: instead call makeOCIBundle().
func realMakeOCIBundle(bundleDir string) error {
if bundleDir == "" {
return errors.New("BUG: Need bundle directory")
Expand Down

0 comments on commit 9df259b

Please sign in to comment.