Don’t understand this-did you bring in a sheet with notes for the test when this was not allowed? Then in this case it’s considered academic misconduct.
If you were planning to tell your classmates about the test, that is another form of academic misconduct/cheating.