From 0e7984f2ecb5dcbf15e493e6d61dd330db0bf80a Mon Sep 17 00:00:00 2001 From: Roettges Florian Date: Wed, 27 Sep 2023 15:02:50 +0200 Subject: [PATCH] fixed os dependent check in test --- crl/crlloader/filecrlloader_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crl/crlloader/filecrlloader_test.go b/crl/crlloader/filecrlloader_test.go index 2ca67ca..7e91af7 100644 --- a/crl/crlloader/filecrlloader_test.go +++ b/crl/crlloader/filecrlloader_test.go @@ -95,8 +95,6 @@ func (suite *FileLoaderSuite) TestLoadCRLWhereCRLIsDirectory() { // Call the LoadCRL method err = fileLoader.LoadCRL(copyToPath) assert.Error(suite.T(), err, "should return an error") - assert.Contains(suite.T(), err.Error(), "after 5 attempts, last error: CRL File") - assert.Contains(suite.T(), err.Error(), "is a directory") } func (suite *FileLoaderSuite) TestLoadCRLWhereCRLPathDoesNotExist() { @@ -123,7 +121,6 @@ func (suite *FileLoaderSuite) TestLoadCRLWhereCRLPathDoesNotExist() { // Call the LoadCRL method err = fileLoader.LoadCRL(copyToPath) assert.Error(suite.T(), err, "should return an error") - assert.Contains(suite.T(), err.Error(), "The system cannot find the path specified") } func (suite *FileLoaderSuite) TestLoadCRLWhereCRLTargetPathDoesNotExist() { @@ -141,7 +138,6 @@ func (suite *FileLoaderSuite) TestLoadCRLWhereCRLTargetPathDoesNotExist() { // Call the LoadCRL method err := fileLoader.LoadCRL(copyToPath) assert.Error(suite.T(), err, "should return an error") - assert.Contains(suite.T(), err.Error(), "The system cannot find the path specified") } func (suite *FileLoaderSuite) TestGetCRLLocationIdentifier() {