144
}
145
147
>
shardID := rand.Int31()
148
>
namespaceID := primitives.NewUUID()
149
>
workflowID := shuffle.String(testHistoryExecutionWorkflowID)
150
>
runID := primitives.NewUUID()
151
>
nextEventID := rand.Int63()
152
>
lastWriteVersion := rand.Int63()
153
>
154
>
execution := s.newRandomExecutionRow(shardID, namespaceID, workflowID, runID, nextEventID, lastWriteVersion)
155
>
result, err := s.store.UpdateExecutions(newExecutionContext(), &execution)
156
>
s.NoError(err)
157
>
rowsAffected, err := result.RowsAffected()
158
>
s.NoError(err)
159
>
s.Equal(0, int(rowsAffected))
160
>
}
161
162
func (s *historyExecutionSuite) TestInsertUpdateSelect() {