Protect htpasswd user list from race condition

This commit is contained in:
Damien Degois
2022-11-03 15:38:41 +01:00
parent aafa966550
commit 86011e8ac7
3 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ var _ = Describe("HTPasswd Suite", func() {
fileNames = append(fileNames, file.Name())
It("has the correct number of users", func() {
Expect(len(htpasswd.users)).To(Equal(hu.expectedLen))
Expect(len(htpasswd.GetUsers())).To(Equal(hu.expectedLen))
})
It(hu.testText, func() {