| ... | @@ -140,7 +140,7 @@ it.layer(NodeServices.layer)("RepositoryIdentityResolverLive", (it) => { | ... | @@ -140,7 +140,7 @@ it.layer(NodeServices.layer)("RepositoryIdentityResolverLive", (it) => { |
| 140 | ); | 140 | ); |
| 141 | | 141 | |
| 142 | it.effect( | 142 | it.effect( |
| 143 | "refreshes cached null identities after the negative TTL when a remote is configured later", | 143 | "keeps null identities cached across repeated resolves until the negative TTL expires", |
| 144 | () => | 144 | () => |
| 145 | Effect.gen(function* () { | 145 | Effect.gen(function* () { |
| 146 | const fileSystem = yield* FileSystem.FileSystem; | 146 | const fileSystem = yield* FileSystem.FileSystem; |
| ... | @@ -156,8 +156,10 @@ it.layer(NodeServices.layer)("RepositoryIdentityResolverLive", (it) => { | ... | @@ -156,8 +156,10 @@ it.layer(NodeServices.layer)("RepositoryIdentityResolverLive", (it) => { |
| 156 | | 156 | |
| 157 | yield* git(cwd, ["remote", "add", "origin", "git@github.com:T3Tools/t3code.git"]); | 157 | yield* git(cwd, ["remote", "add", "origin", "git@github.com:T3Tools/t3code.git"]); |
| 158 | | 158 | |
| 159 | const cachedIdentity = yield* resolver.resolve(cwd); | 159 | for (const _attempt of [1, 2, 3]) { |
| 160 | expect(cachedIdentity).toBeNull(); | 160 | const cachedIdentity = yield* resolver.resolve(cwd); |
| | 161 | expect(cachedIdentity).toBeNull(); |
| | 162 | } |
| 161 | | 163 | |
| 162 | yield* TestClock.adjust(Duration.millis(120)); | 164 | yield* TestClock.adjust(Duration.millis(120)); |
| 163 | | 165 | |