| ... | ... | @@ -140,7 +140,7 @@ it.layer(NodeServices.layer)("RepositoryIdentityResolverLive", (it) => { |
| 140 | 140 | ); |
| 141 | 141 | |
| 142 | 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 | 145 | Effect.gen(function* () { |
| 146 | 146 | const fileSystem = yield* FileSystem.FileSystem; |
| ... | ... | @@ -156,8 +156,10 @@ it.layer(NodeServices.layer)("RepositoryIdentityResolverLive", (it) => { |
| 156 | 156 | |
| 157 | 157 | yield* git(cwd, ["remote", "add", "origin", "git@github.com:T3Tools/t3code.git"]); |
| 158 | 158 | |
| 159 | | const cachedIdentity = yield* resolver.resolve(cwd); |
| 160 | | expect(cachedIdentity).toBeNull(); |
| 159 | for (const _attempt of [1, 2, 3]) { |
| 160 | const cachedIdentity = yield* resolver.resolve(cwd); |
| 161 | expect(cachedIdentity).toBeNull(); |
| 162 | } |
| 161 | 163 | |
| 162 | 164 | yield* TestClock.adjust(Duration.millis(120)); |
| 163 | 165 | |