@@ -147,10 +147,6 @@ func Test_ProfilingResult(t *testing.T) {
147147}
148148
149149func Test_Profile_Integration_LocalEmulator (t * testing.T ) {
150- if testing .Short () {
151- t .Skip ("Skipping integration test in short mode" )
152- }
153-
154150 t .Run ("Profile user transaction" , func (t * testing.T ) {
155151 t .Parallel ()
156152
@@ -347,7 +343,14 @@ func buildTransaction(t *testing.T, script string, blockchain emulator.Emulator)
347343}
348344
349345func submitAndCommitTransaction (t * testing.T , tx * flow.Transaction , blockchain emulator.Emulator ) {
350- err := blockchain .AddTransaction (* convert .SDKTransactionToFlow (* tx ))
346+ serviceKey := blockchain .ServiceKey ()
347+ signer , err := serviceKey .Signer ()
348+ require .NoError (t , err )
349+
350+ err = tx .SignEnvelope (serviceKey .Address , serviceKey .Index , signer )
351+ require .NoError (t , err )
352+
353+ err = blockchain .AddTransaction (* convert .SDKTransactionToFlow (* tx ))
351354 require .NoError (t , err )
352355
353356 _ , _ , err = blockchain .ExecuteAndCommitBlock ()
@@ -416,7 +419,6 @@ func startEmulatorWithMultipleTransactions(t *testing.T, host string, port int,
416419 createInitialBlocks (t , blockchain )
417420
418421 var lastTxID flow.Identifier
419- serviceKey := blockchain .ServiceKey ()
420422
421423 for i := 0 ; i < count ; i ++ {
422424 tx := buildTransaction (t , fmt .Sprintf (`
@@ -438,7 +440,6 @@ func startEmulatorWithMultipleTransactions(t *testing.T, host string, port int,
438440 submitAndCommitTransaction (t , tx , blockchain )
439441
440442 lastTxID = tx .ID ()
441- serviceKey .SequenceNumber ++
442443 }
443444
444445 block , err := blockchain .GetLatestBlock ()
0 commit comments