Эх сурвалжийг харах

:white_check_mark: Disabling acceleration test (#169)

Danilo Guanabara 5 сар өмнө
parent
commit
c62617f6df

+ 15 - 14
clients/csharp/Solana.Unity.Bolt.Test/AccelerationTest.cs

@@ -43,19 +43,20 @@ namespace AccelerationTest {
             await framework.SendAndConfirmInstruction(delegateComponent.Instruction);
         }
 
-        public static async Task ApplySimpleMovementSystemOnAccelerator(Framework framework) {
-            for (int i = 0; i < 10; i++) {
-                var apply = new ApplyAccounts() {
-                    Authority = framework.Wallet.Account.PublicKey,
-                    BoltSystem = framework.SystemSimpleMovement,
-                    World = framework.WorldPda,
-                };
-                var instruction = WorldProgram.Apply(apply, Bolt.World.SerializeArgs(new { direction = "Up" }));
-                instruction.Keys.Add(AccountMeta.ReadOnly(framework.ExampleComponentPosition, false));
-                instruction.Keys.Add(AccountMeta.Writable(framework.AccelerationComponentPositionPda, false));
-                await framework.SendAndConfirmInstruction(framework.AcceleratorClient, instruction);
-                await Task.Delay(50);
-            }
-        }
+        // TODO: Re-enable this test when ephemeral-validator is properly installed on the CI.
+        // public static async Task ApplySimpleMovementSystemOnAccelerator(Framework framework) {
+        //     for (int i = 0; i < 10; i++) {
+        //         var apply = new ApplyAccounts() {
+        //             Authority = framework.Wallet.Account.PublicKey,
+        //             BoltSystem = framework.SystemSimpleMovement,
+        //             World = framework.WorldPda,
+        //         };
+        //         var instruction = WorldProgram.Apply(apply, Bolt.World.SerializeArgs(new { direction = "Up" }));
+        //         instruction.Keys.Add(AccountMeta.ReadOnly(framework.ExampleComponentPosition, false));
+        //         instruction.Keys.Add(AccountMeta.Writable(framework.AccelerationComponentPositionPda, false));
+        //         await framework.SendAndConfirmInstruction(framework.AcceleratorClient, instruction);
+        //         await Task.Delay(50);
+        //     }
+        // }
    }
 }

+ 31 - 30
clients/typescript/test/intermediate-level/acceleration.ts

@@ -64,36 +64,37 @@ export function acceleration(framework: Framework) {
       expect(acc?.owner.toBase58()).to.equal(DELEGATION_PROGRAM_ID.toBase58());
     });
 
-    it("Apply Simple Movement System (Up) on Entity 1 on Accelerator 10 times", async () => {
-      for (let i = 0; i < 10; i++) {
-        let applySystem = await ApplySystem({
-          authority: framework.provider.wallet.publicKey,
-          systemId: framework.systemSimpleMovement.programId,
-          world: framework.worldPda,
-          entities: [
-            {
-              entity: framework.acceleratedEntityPda,
-              components: [
-                { componentId: framework.exampleComponentPosition.programId },
-              ],
-            },
-          ],
-          args: {
-            direction: Direction.Up,
-          },
-        });
+    // TODO: Re-enable this test when ephemeral-validator is properly installed on the CI.
+    // it("Apply Simple Movement System (Up) on Entity 1 on Accelerator 10 times", async () => {
+    //   for (let i = 0; i < 10; i++) {
+    //     let applySystem = await ApplySystem({
+    //       authority: framework.provider.wallet.publicKey,
+    //       systemId: framework.systemSimpleMovement.programId,
+    //       world: framework.worldPda,
+    //       entities: [
+    //         {
+    //           entity: framework.acceleratedEntityPda,
+    //           components: [
+    //             { componentId: framework.exampleComponentPosition.programId },
+    //           ],
+    //         },
+    //       ],
+    //       args: {
+    //         direction: Direction.Up,
+    //       },
+    //     });
 
-        await framework.acceleratorProvider.sendAndConfirm(
-          applySystem.transaction,
-          [],
-          {
-            skipPreflight: true,
-            commitment: "processed",
-          },
-        );
-        // Wait for 50ms
-        await new Promise((resolve) => setTimeout(resolve, 50));
-      }
-    });
+    //     await framework.acceleratorProvider.sendAndConfirm(
+    //       applySystem.transaction,
+    //       [],
+    //       {
+    //         skipPreflight: true,
+    //         commitment: "processed",
+    //       },
+    //     );
+    //     // Wait for 50ms
+    //     await new Promise((resolve) => setTimeout(resolve, 50));
+    //   }
+    // });
   });
 }