[#308] Removed code style issue on Error string

* This commit will remove code style issue on Error string

Change-Id: Ib2344de75768362a88c077354193878366ce4b0c
This commit is contained in:
bijayasharma 2020-07-24 14:19:57 -04:00
parent bf3017c12f
commit 241714d042
4 changed files with 7 additions and 7 deletions

View File

@ -52,7 +52,7 @@ func TestGetManifestConfigCmd(t *testing.T) {
Name: "missing",
CmdLine: "manifestMissing",
Cmd: cmd.NewGetManifestCommand(settings),
Error: fmt.Errorf("Missing configuration: Manifest with name 'manifestMissing'"),
Error: fmt.Errorf("missing configuration: Manifest with name 'manifestMissing'"),
},
{
Name: "no-manifests",

View File

@ -66,7 +66,7 @@ func TestBootstrapIso(t *testing.T) {
defer cleanup(t)
volBind := tempVol + ":/dst"
testErr := fmt.Errorf("TestErr")
testErr := fmt.Errorf("testErr")
testCfg := &config.Bootstrap{
Container: &config.Container{
Volume: volBind,

View File

@ -177,7 +177,7 @@ func (o *ManifestOptions) Validate() error {
return fmt.Errorf("you must specify a non-empty Manifest name")
}
if o.RemoteRef != "" {
return fmt.Errorf("Repository checkout by RemoteRef is not yet implemented\n%w", errors.ErrNotImplemented{})
return fmt.Errorf("repository checkout by RemoteRef is not yet implemented\n%w", errors.ErrNotImplemented{})
}
if o.IsPrimary && o.RepoName == "" {
return ErrMissingRepositoryName{}

View File

@ -48,16 +48,16 @@ func TestManifestBundleReader(t *testing.T) {
},
{
name: "Read error",
errString: "Failed to read from bundle",
errString: "failed to read from bundle",
reader: fakeReaderWriter{
readErr: fmt.Errorf("Failed to read from bundle"),
readErr: fmt.Errorf("failed to read from bundle"),
},
},
{
name: "Write error",
errString: "Failed to write bundle",
errString: "failed to write bundle",
writer: fakeReaderWriter{
writeErr: fmt.Errorf("Failed to write bundle"),
writeErr: fmt.Errorf("failed to write bundle"),
},
},
}