Skip to content

Commit

Permalink
update single.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
cdschexnide authored Jun 2, 2022
1 parent cc0e44d commit ad7c28c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions single.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ interface TestContext {

const redis = await connect({hostname: "127.0.0.1", port: 6379});

// PASSED
Deno.test("acquires, extends, and releases a lock with a single resource", async (t) => {
try {
await redis
Expand Down Expand Up @@ -54,7 +53,6 @@ Deno.test("acquires, extends, and releases a lock with a single resource", async
}
});

// PASSED
Deno.test("acquires, extends, and releases a multi-resource lock", async (t) => {
try {
await redis
Expand Down Expand Up @@ -87,8 +85,7 @@ Deno.test("acquires, extends, and releases a multi-resource lock", async (t) =>
});


// PASSED
Deno.test("locks fail when redis is unreachable", async (t) => {
Deno.test("if communication with Redis goes down, the lock fails", async (t) => {
try {
await redis
.keys("*")
Expand Down Expand Up @@ -123,7 +120,6 @@ Deno.test("locks fail when redis is unreachable", async (t) => {
}
});

// PASSED
Deno.test("automatic expiration for locks", async (t) => {
try {
await redis
Expand Down Expand Up @@ -153,7 +149,6 @@ Deno.test("automatic expiration for locks", async (t) => {
}
});

// PASSED
Deno.test("locks are exclusive", async (t) => {
try {
await redis
Expand Down Expand Up @@ -197,7 +192,6 @@ Deno.test("locks are exclusive", async (t) => {
}
});

// PASSED
Deno.test("overlapping multi-locks are exclusive", async () => {
try {
await redis
Expand Down Expand Up @@ -246,7 +240,6 @@ Deno.test("overlapping multi-locks are exclusive", async () => {
}
});

// PASSED
Deno.test("the using helper acquires, extends, and releases locks", async (t) => {
try {
await redis
Expand Down Expand Up @@ -283,7 +276,6 @@ Deno.test("the using helper acquires, extends, and releases locks", async (t) =>
}
});

// PASSED
Deno.test("the using helper is exclusive", async (t) => {
try {
await redis
Expand Down

0 comments on commit ad7c28c

Please # to comment.